package cn.edu.zafu.bigdata.hdb;
import java.io.Serializable;

public class Student implements Serializable {
    private String id; // 学号
    private String name; // 姓名
    private String phone; // 电话

    public Student(String id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "学生信息: [学号: " + id + ", 姓名: " + name + ", 电话: " + phone + "]";
    }
}
